import os


class Config:
    """应用程序配置类"""
    # 应用设置
    SECRET_KEY = 'huomoe0'
    DEBUG = os.environ.get('DEBUG', 'True') == 'True'

    # 路径配置
    BASE_DIR = os.path.abspath(os.path.dirname(__file__))
    TEMP_FOLDER = os.path.join(BASE_DIR, 'temp')

    # 数据目录
    DATA_DIR = os.path.join(BASE_DIR, 'dataset')
    MODELS_DIR = os.path.join(BASE_DIR, 'models')

    BAIDU_API_KEY = 'Bearer bce-v3/ALTAK-N4M8StcUkcEvMUp40shxd/f7e28bdee93eccbbdee2dc10a4c038b9de170f6d'


config = Config()
